package creational.abstractfactory;

public class IntelMainboard implements IMainboard {

    private int type;

    public IntelMainboard(int type) {
        this.type = type;
    }

    @Override
    public void installCpu() {
        if (this.type == 0) {
            System.out.println("Intel Mainbroad1 安装CPU");
        } else if (this.type == 1) {
            System.out.println("Intel Mainbroad2 安装CPU");
        } else if (this.type == 2) {
            System.out.println("Intel Mainbroad3 安装CPU");
        }
    }

    @Override
    public void installGC() {
        if (this.type == 0) {
            System.out.println("Intel Mainbroad1 安装显卡");
        } else if (this.type == 1) {
            System.out.println("Intel Mainbroad2 安装显卡");
        } else if (this.type == 2) {
            System.out.println("Intel Mainbroad3 安装显卡");
        }
    }
}
